import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Recommend',
      component: () => import('../views/RecommendView.vue'),
    },
    {
      path: '/tabList/:tabId',
      name: 'TabList',
      props: true,
      component: () => import('../views/TabListView.vue'),
    },
    {
      path: '/billboard',
      name: 'Billboard',
      component: () => import('../views/BillboardView.vue'),
    },
    {
      path: '/category',
      name: 'Category',
      component: () => import('../views/CategoryView.vue'),
    },
    {
      path: '/update',
      name: 'Update',
      component: () => import('../views/UpdateView.vue'),
    },
    {
      path: '/bookshelf',
      name: 'Bookshelf',
      component: () => import('../views/BookshelfView.vue'),
    },
    {
      path: '/user',
      name: 'User',
      component: () => import('../views/UserView.vue'),
    },
    {
      path: '/comicDetail/:id',
      name: 'ComicDetail',
      props: true,
      component: () => import('../views/ComicDetailView.vue'),
    },
    {
      path: '/comicCover/:id',
      name: 'ComicCover',
      props: true,
      component: () => import('../views/ComicCoverView.vue'),
    },
    {
      path: '/comments/:id',
      name: 'Comments',
      props: true,
      component: () => import('../views/CommentsListView.vue'),
    },
    {
      path: '/search',
      name: 'Search',
      component: () => import('../views/SearchView.vue'),
    },

  ],
})

export default router
